package com.zhao.concreteColleague;

import com.zhao.colleague.Colleague;
import com.zhao.mediator.Mediator;

public class Tenant02 extends Colleague {

    public Tenant02(Mediator mediator) {
        super(mediator);
    }

    @Override
    public void contact() {
        mediator.contact(this);
    }

    @Override
    public void getMessage() {
        System.out.println("我是租房者2号，我需要一套房子");
    }
}
